import { loadFbx } from "./loadModel";
import * as THREE from "three";

export async function loadCabinetModel(url) {
    let obj = await loadFbx(url);
    // 设置双面渲染
    obj.traverse(function (child) {
        if (child.isMesh) {
            if (child.material) {
                child.material.side = THREE.DoubleSide;
            }
        }
    });
    return obj
}
